package org.example.doctorapi.data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_oper_log")
@AllArgsConstructor
@NoArgsConstructor
public class SysOperLog extends BaseDto implements Serializable {
    private Integer operId;
    private String title;
    private String businessType;
    private String method;
    private String requestMethod;
    private Integer operatorType;
    private String operName;
    private String operUrl;
    @TableField(value = "oper_ip")
    private String operIp;
    private String operParam;
    private String jsonResult;
    private String status;
    private String errorMsg;
    private Date operTime;
    public static final String OPER_ID = "oper_id";
    public static final String TITLE = "title";
    public static final String BUSINESS_TYPE = "business_type";
    public static final String METHOD = "method";
    public static final String REQUEST_METHOD = "request_method";
    public static final String OPERATOR_TYPE = "operator_type";
    public static final String OPER_NAME = "oper_name";
    public static final String OPER_URL = "oper_url";
    public static final String OPER_IP = "oper_ip";
    public static final String OPER_PARAM = "oper_param";
    public static final String JSON_RESULT = "json_result";
    public static final String STATUS = "status";
    public static final String ERROR_MSG = "error_msg";
    public static final String OPER_TIME = "oper_time";

}
